/**
 * Created by HYFrank on 2017/12/7.
 */
(function($){
    $(document).ready(function(){
        Materialize.updateTextFields();
        $(".button-collapse").sideNav();
    }); // end of document ready

    $('.button-collapse').sideNav({
        menuWidth: 300, // Default is 300
        edge: 'right', // Choose the horizontal origin
        closeOnClick: true, // Closes side-nav on <a> clicks, useful for Angular/Meteor
        draggable: true, // Choose whether you can drag to open on touch screens,
        onOpen: function(el) { /* Do Stuff*/ }, // A function to be called when sideNav is opened
        onClose: function(el) { /* Do Stuff*/ }, // A function to be called when sideNav is closed
    }
 );
})(jQuery); // end of jQuery name space